import request from '@/utils/request'

// 获取瞬时流量监测量下拉列表
export function getFlowMonitoringList() {
  return request({
    url: '/dispatch/system/dispatchAmountWater/getFlowList',
    method: 'get'
  })
}

// 获取统计时间间隔下拉列表
export function getTimeIntervalList() {
  return request({
    url: '/dispatch/system/dispatchAmountWater/getTimeIntervalList',
    method: 'get'
  })
}

// 获取水量分析报表数据
export function getAmountWaterReport(params) {
  return request({
    url: '/dispatch/system/dispatchAmountWater/getAmountWaterReport',
    method: 'get',
    params
  })
}

// 导出水量分析报表
export function exportAmountWaterReport(params) {
  return request({
    url: '/dispatch/system/dispatchAmountWater/export',
    method: 'post',
    params,
    responseType: 'blob'
  })
}